﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BAL.Controller;
using EntityObjects;

namespace PresentationLayer.View.Clerk
{
    public partial class ViewDisbursementList : System.Web.UI.Page
    {
        ViewDisbursementListForStoreControl control;
        int deptId;

        protected void Page_Load(object sender, EventArgs e)
        {
            List<Department> deptList = new List<Department>();
            control = new ViewDisbursementListForStoreControl();
            if (!IsPostBack)
            {
                deptList = control.getAllDepartment();
                ddDepartment.DataSource = deptList;
                ddDepartment.DataTextField = "deptName";
                ddDepartment.DataValueField = "deptId";
                ddDepartment.DataBind();

                gvDisbursementList.DataSource = null;
                gvDisbursementList.DataBind();
            }
            else
            {

            }
        }
    }
}